package li.webqq;

import li.webqq.util.StringUtil;

/**
 * QQ项目的一些常量
 */
public interface Const {
    public static final String APP_ID = "1003903";

    public static final String CLIENT_ID = "45871842";

    public static final String URL_PROXY = "http://d.web2.qq.com/proxy.html?v=20110331002&callback=1&id=3";

    public static final String URL_SEND_QUN_MSG2 = "http://d.web2.qq.com/channel/send_qun_msg2";

    public static final String URL_SEND_BUDDY_MSG2 = "http://d.web2.qq.com/channel/send_buddy_msg2";

    public static final String URL_POLL2 = "http://d.web2.qq.com/channel/poll2";

    public static final String URL_LOGIN2 = "http://d.web2.qq.com/channel/login2";

    public static final String URL_GET_USER_FRIENDS2 = "http://s.web2.qq.com/api/get_user_friends2";

    public static final String URL_GETIMAGE = "http://captcha.qq.com/getimage";

    public static final String URL_GET_GROUP_NAME_LIST_MASK2 = "http://s.web2.qq.com/api/get_group_name_list_mask2";

    public static final String URL_CHECK = "https://ssl.ptlogin2.qq.com/check?appid=" + APP_ID + "&js_ver=10033&js_type=0"//
            + "&login_sig=YrvpZWff-so2QcGKqQh0xaVgk*any0X7xXNPbhFEP6RJYbQRajWOyidXkvETinF3"//
            + "&u1=http%3A%2F%2Fweb2.qq.com%2Floginproxy.html&r=" + StringUtil.random();//

    public static final String URL_LOGIN = "https://ssl.ptlogin2.qq.com/login?webqq_type=60&remember_uin=1&login2qq=1&aid=1003903"//
            + "&u1=http%3A%2F%2Fweb2.qq.com%2Floginproxy.html%3Flogin2qq%3D1%26webqq_type%3D60"//
            + "&h=1&ptredirect=0&ptlang=2052&daid=164&from_ui=1&pttype=1&dumy=&fp=loginerroralert"//
            + "&action=8-31-129273&mibao_css=m_webqq&t=1&g=1&js_type=0&js_ver=10033"//
            + "&login_sig=YrvpZWff-so2QcGKqQh0xaVgk*any0X7xXNPbhFEP6RJYbQRajWOyidXkvETinF3";

    public static final String URL_LOGIN_UI = "https://ui.ptlogin2.qq.com/cgi-bin/login?daid=164&target=self&style=5&mibao_css=m_webqq" //
            + "&appid=1003903&enable_qlogin=0&no_verifyimg=1&s_url=http%3A%2F%2Fweb2.qq.com%2Floginproxy.html"//
            + "&f_url=loginerroralert&strong_login=1&login_state=10&t=20130704001";

    public static final String URL_GET_FRIEND_UIN2 = "http://s.web2.qq.com/api/get_friend_uin2?verifysession=&type=1&code=&t=1373085448522";

    public static final String URL_GET_FACE = "http://face3.web.qq.com/cgi/svr/face/getface?cache=0&type=11&fid=0";

    public static final String URL_GET_FRIEND_INFO2 = "http://s.web2.qq.com/api/get_friend_info2?verifysession=&code=&t=1373093193149";//

    public static final String URL_GET_ONLINE_BUDDIES2 = "http://d.web2.qq.com/channel/get_online_buddies2?clientid=" + CLIENT_ID + "&t=1373215720239";

    public static final String URL_WEB2 = "http://web2.qq.com/";

    static final String URL_CHECK_SIG = "http://ptlogin4.web2.qq.com/check_sig" + //
            "?pttype=1" + //
            "&uin={=0=}" + //
            "&service=login" + //
            "&nodirect=0" + //
            "&ptsig=JlCirxJJLW930vbC3r00ELaMyNhWXgkb1VFDvmfoUjA_" + //
            "&s_url=http%3A%2F%2Fweb2.qq.com%2Floginproxy.html%3Flogin2qq%3D1%26webqq_type%3D60" + //
            "&f_url=" + //
            "&ptlang=2052" + //
            "&ptredirect=100" + //
            "&aid=1003903" + //
            "&daid=164" + //
            "&j_later=0" + //
            "&low_login_hour=0" + //
            "&regmaster=0" + //
            "&pt_login_type=1" + //
            "&pt_aid=0" + //
            "&pt_aaid=0" + //
            "&pt_light=0";

    /**
     * 参数 group_uin content msg_id psessionid
     */
    public static final String R_SEND_QUN_MSG2 = "{\"group_uin\":{=0=},\"content\":\"[\\\"{=1=}\\\",[\\\"font\\\",{\\\"name\\\":\\\"宋体\\\",\\\"size\\\":\\\"10\\\",\\\"style\\\":[0,0,0],\\\"color\\\":\\\"000000\\\"}]]\","//
            + "\"msg_id\":{=2=},\"clientid\":\"" + CLIENT_ID + "\",\"psessionid\":\"{=3=}\"}";

    /**
     * 参数 to content msg_id psessionid
     */
    public static final String R_SEND_BUDDY_MSG2 = "{\"to\":{=0=},\"face\":522,\"content\":\"[\\\"{=1=}\\\",[\\\"font\\\",{\\\"name\\\":\\\"宋体\\\",\\\"size\\\":\\\"10\\\",\\\"style\\\":[0,0,0],\\\"color\\\":\\\"000000\\\"}]]\","//
            + "\"msg_id\":{=2=},\"clientid\":\"" + CLIENT_ID + "\",\"psessionid\":\"{=3=}\"}";

    /**
     * 参数 psessionid
     */
    // public static final String R_POLL2 = "{\"clientid\":\"" + CLIENT_ID + "\",\"psessionid\":\"{=0=}\",\"key\":0,\"ids\":[]}";
    public static final String R_POLL2 = "{\"ptwebqq\":\"{=0=}\",\"clientid\":" + CLIENT_ID + ",\"psessionid\":\"{=1=}\",\"key\":\"\"}";

    /**
     * 参数 ptwebqq
     */
    // public static final String R_LOGIN2 = "{\"status\":\"online\",\"ptwebqq\":\"{=0=}\",\"passwd_sig\":\"\",\"clientid\":\"" + CLIENT_ID + "\",\"psessionid\":null}";
    public static final String R_LOGIN2 = "{\"ptwebqq\":\"{=0=}\",\"clientid\":" + CLIENT_ID + ",\"psessionid\":\"\",\"status\":\"online\"}";

    /**
     * 参数 hash vfwebqq
     */
    public static final String R_GET_USER_FRIENDS2 = "{\"h\":\"hello\",\"hash\":\"{=0=}\",\"vfwebqq\":\"{=1=}\"}";

    /**
     * 参数 vfwebqq
     */
    public static final String R_GET_GROUP_NAME_LIST_MASK2 = "{\"vfwebqq\":\"{=0=}\"}";
}